
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@page import="dktc_ws.Tintuc"%>
<%@page import="java.util.LinkedList"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%@page import="java.util.Calendar"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="GetData.DataWS"%>
<%@page import="DTO.sinhvien"%>


<style>
    div#news
    {
         border-radius: 6px;
            margin-top: 3px;
            margin-left: 3px;
            margin-right: 3px;
            border: 1px #039 double;
            min-height: 700px;
            margin-bottom: 5px;
    }
    div#news-item
    {       
        padding: 2px;
        margin: 3px auto;
        border-radius:3px;
    }
    div#news-title
    {
        color: blue;
        font-size: 16px;
        width: auto;
        margin-right: 20px;
        float: left;
        height: 20px;
    }
    div#link-news
    {
        
    }
    div#news-short-description a
    {      
        text-decoration: none;
    }
    div#text-news
    {
        width: 100%;
        height: 40px;
        background: url('images/cat_back.gif') repeat-x;
        text-align: center;
        padding-top: 5px;
        font-weight: bolder;
        color: white;
        border-radius:5px;
    }
    div#news-detail
    {
        padding: 5px;
    }
</style>

<div id="news">
<div id="text-news">THÔNG BÁO</div>
<div id="news-detail">
<% if(request.getParameter("idnews")!=null)
{
    int idnews=0; 
   String temp=request.getParameter("idnews");
   Tintuc it=new Tintuc();
    try{
        idnews=Integer.parseInt(temp);
        DataWS dt=new DataWS();
        List<dktc_ws.Tintuc> tt=dt.laydanhsachtintuc(idnews);
        for(int i=0;i<tt.size();i++)
           {
                it=tt.get(i);             
  
   %>
   <div style="margin-bottom: 20px;">
       <div id="news-title"><%=it.getTuade() %></div><div style="color:#c3c3c3;height: 20px;">( <%=it.getNgaydang() %> )</div>
   </div>
   <div id="content-news"><%=it.getNoidung() %></div>
   
   <%
                   break;
           }    
        }
    catch(Exception ex)
                       {
        
    }
   
}
else
       {
        pageContext.include("../error/error.jsp");
        return;
}

%>
</div>
</div>